package com.hulk.ratel.api.web.dto;


import lombok.*;
import lombok.experimental.Accessors;
import org.hibernate.validator.constraints.Length;
import javax.validation.constraints.NotBlank;

import javax.validation.constraints.Past;
import javax.validation.constraints.Pattern;
/**
 * @author hulk
 *
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@ToString(callSuper = true)
public class HeadReqDTO extends BaseDTO {


	private static final long serialVersionUID = 1L;
	@NotBlank(message="{up.HeadReqDTO.reqDate}")
	@Length(min=8,max=8,message="{up.HeadReqDTO.reqDate}")
	@Pattern(regexp = "^[0-9]+$" ,message="{up.HeadReqDTO.reqDate}")
	private String reqDate ;
	@NotBlank(message="{up.HeadReqDTO.reqTime}")
	@Length(min=14,max=14,message="{up.HeadReqDTO.reqTime}")
	@Pattern(regexp = "^[0-9]+$" ,message="{up.HeadReqDTO.reqTime}")
	@Past
	private String reqTime;

}
